<template>
  <div>
    <Editor
      id="tinymce"
      v-model="tinymceHtml"
      :init="editorInit"
    ></Editor>
  </div>
</template>
<script>
import tinymce from 'tinymce/tinymce'
import 'tinymce/themes/silver/theme'
import Editor from '@tinymce/tinymce-vue'
export default {
  data: () => ({
    editorInit: {
      language_url: '/assets/tinymce/zh_CN.js',
      language: 'zh_CN',
      skin_url: '/assets/tinymce/skins/lightgray',
      height: 300
    }
  }),
  components: {
    Editor
  },
  mounted(){
    tinymce.in
  }
}
</script>
<style lang="scss" scoped>
</style>